package upnp

import "strings"

type errorNotFound struct {
	which string
}

func (e errorNotFound) Error() string {
	return "not found: " + e.which
}

// IsNotfound check error is not found
func IsNotfound(err error) bool {
	if err == nil {
		return false
	}
	return strings.HasPrefix(err.Error(), "not found:")
}
